<template>
  <el-card>
    <template #heaeder>订单编辑</template>

    <div>{{ info }}</div>
  </el-card>
</template>

<script>
import { getOrderItem } from '@/api/orders.js'

export default {
  data() {
    return {
      info: {}
    }
  },
  created() {
    this.getOrderDeail()
  },
  methods: {
    async getOrderDeail() {
      const { data } = await getOrderItem({
        id: this.$route.params.id
      })
      console.log(data)
      this.info = data
    }
  }
}
</script>

<style lang="less" scoped></style>
